<?php
require_once dirname(__FILE__) . '/Mapper.php';
require_once 'models/Request/Controller.php';
require_once 'Calendar/WeekList.php';

class CalendarMapper extends View_Mapper
{
	public function indexAction()
	{
		$iYear
		= Models_Request_Controller2::get(
			Models_Request_Controller2::KEY_YEAR, TRUE);
		$iMonth
		= Models_Request_Controller2::get(
			Models_Request_Controller2::KEY_MONTH, TRUE);
		$iStartYobiNum = 1;

		$objCalendarComponent
		= new Components_Calendar_Weeklist(
			$iYear,
			$iMonth,
			$iStartYobiNum);

		$sRet = $objCalendarComponent->fetch();
		$this->view->htmlCalendar = $sRet;
		$this->view->HeaderTitle = 'これだ';
	}
}